ORA-00933 error but the query have correct clauses